package com.cup.wx.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


import lombok.Data;

@Configuration
public class WebChatConfig {
	
	@ConfigurationProperties(prefix="wxconfig.account")
	@Data
	public class WXAccountProperties {
		
		private String appid;
		
		private String appsecret;
		
		private String parter;
		
		private String partenerkey;
		
		private String aeskey;
	}
	
	@ConfigurationProperties(prefix="wxconfig.url")
	@Data
	public class WXUrlProperties {
		
		/**
		 * 微信调用地址
		 */
		private String domain;
		
		/**
		 * 微信支付调用地址
		 */
		private String paydomain;
		
		/**
		 * 微信支付回掉地址
		 */
		private String notifyurl;
		
		/**
		 * 公众号获取accesstoken
		 */
		private String accesstoken;
		
		/**
		 * 网页授权获取accesstoken
		 */
		private String codetoken;
		
		/**
		 * 根据授权accesstoken 获取微信用户信息
		 */
		private String userinfo;
		
		/**
		 * 小程序授权code换算openid和sessionkey
		 */
		private String jscode2session;
		
		/**
		 * 微信支付模块URL
		 */
		private String unifiedorder;
		
		// 1.设置所属行业 - http请求方式: POST
		private String setindustry;
		
		// 1.获取设置的行业信息 http请求方式：GET
		private String getindustry;
		
		// 1.获得模板ID http请求方式: POST
		private String addtemplate;
		
		private String settemplate;
		
		// 1.发送模板消息 http请求方式: POST
		private String sendmessage;
		
		private String orderquery;
		
		private String closeorder;
		
		private String refund;
		
		private String refundquery;
		
		private String downloadbill;
		
		private String report;
		
		private String shorturl;
	}
}
